package com.ruoyi.project.remoteControl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.remoteControl.domain.DeviceAliveInfo;
import com.ruoyi.project.remoteControl.domain.TugBoatInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceAliveInfoMapper extends BaseMapper<DeviceAliveInfo> {
    public DeviceAliveInfo selectOneByDeviceClientId(String deviceClientId);
    
    public void insertDeviceAliveInfo(DeviceAliveInfo computerInfo);
    
    public void updateDeviceAliveInfo(DeviceAliveInfo computerInfo);

    /**
     * 查询拖轮名称和clientId，供前端查询的下拉菜单候选
     * @return
     */
    public List<TugBoatInfo> selectAllTugboatInfo();
    
    public void deleteByDeviceClientId(String deviceClientId);
}
